﻿{include file="public/header" /}
<title></title>
	<head>
		<meta charset="utf-8" />
		<title>商家鼓励金记录</title>
		<link rel="stylesheet" href="__OEM__/css/iconfont.css" />
		<link rel="stylesheet" href="__OEM__/css/css.css" />
	</head>

<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 商家列表
		<span class="c-gray en">&gt;</span> 鼓励金记录
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<div>累积收入：<span style="color:red;">{$sumsr?$sumsr : 0}</span>
			&nbsp;累积支出：<span style="color:red;">{$sumzc?$sumzc : 0}</span>
			&nbsp;余额：<span style="color:red;">{$sums?$sums : 0}</span></div>
		<input id="agent_id" name="agent_id" type="hidden" class="input-text" value={$agent_id}>	
		<div class="chax_xzbtnbox">
			<a href="#" onclick="check()"><i class="iconfont icon-daochu"></i>导出</a>
		</div>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr class="text-c">
				<th>操作类型</th>
				<th>金额</th>
				<th>信息</th>
				<th>增加时间</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo" empty=""}
			<tr class="text-c">
				<td>
					{switch name="$vo.order_type"}
				    {case value="1"}订单{/case}
				    {case value="2"}订单退款{/case}
				    {case value="3"}扫码支付{/case}
				    {case value="4"}扫码退款{/case}
				    {case value="5"}鼓励金充值{/case}
				    {case value="6"}鼓励金兑现{/case}
				    {case value="7"}线下收银{/case}
				    {case value="8"}提前分佣{/case}
				    {case value="9"}我的会员充值分佣{/case}
				    {default /}扫码支付
					{/switch}	
				</td>
				<td>{$vo.balance}</td>
				<td>{$vo.message}</td>
				<td>{$vo.add_time}</td>
			</tr>
			{/volist}
			</tbody>
			</table>
			<div class="fenye" style="display: block;">
				{$list->render()}
			</div>
		</div>
		
		{include file="public/footer" /}
		<script type="text/javascript">
			//导出
			function check() {
				var agent_id = $('#agent_id').val();
				window.location.href = "/admin/accounts/agentglj_dc.html?agent_id=" + agent_id;
			}			
		</script>